import pickle

class FileIO:
    # 从pkl文件读取数据
    def read_data(self, file_path):
        with open(file_path, "rb") as f:
            data = pickle.load(f)
        return data
    # 将内容写入txt文件
    def write_txt(self, content):
        with open("operation_log.txt", "a") as f:
            f.write(content + "\n")